<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>student</title>
  <link href="/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">

  <script src="/js/vue.js"></script>
  <script src="/js/axios.min.js"></script>
</head>
<body>
<div id="app">
  <div class=container>
    <div class="panel panel-info">
      <div class="panel-heading">公司信息详情页</div>
      <div class="panel-body">
        <p>详情信息</p>
      </div>
      <form class="form-horizontal">
        <input type="hidden" v-model="company.company_id" name="company_id" />
        <div class="form-group">
          <label for="uname" class="col-sm-2 control-label">公司名称</label>
          <div class="col-sm-10">
            <input type="text" v-model="company.company_name" name="name"  class="form-control" id="inputPassword3" placeholder="">
          </div>
        </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">公司账号</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_number class="form-control"  >
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">公司密码</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_pass class="form-control"  >
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">公司图片</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_img_url class="form-control"  placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">公司电话</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_tel class="form-control"  placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">公司邮箱</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_email class="form-control" placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">公司地址</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_add class="form-control"  placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">工作地点</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.job_add class="form-control"  placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">注册日期</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_date class="form-control"  placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">创建日期</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.create_date class="form-control"  placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">法定代表人</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.legal_person class="form-control"  placeholder="name">
                  </div>
                </div>
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">状态</label>
                  <div class="col-sm-10">
                    <input type="text" v-model=company.company_state class="form-control"  placeholder="name">
                  </div>
                </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <a href="company.html"><button type="button"  class="btn btn-info">返回</button></a>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
</body>
</html>

  <script>
      new Vue({
          el:"#app",
          data:{
              company:{
              }
          },
          methods:{
          },
          mounted(){
              var _this = this
              var company_id = window.localStorage.getItem("company_id")
              console.log("主键为："+ company_id)
              axios.get('/company/look',{
                  params:{
                      company_id: company_id
                  }
              })
                  .then(function (response){
                      _this.company = response.data
                      console.log(response.data);
                  })
                  .catch(function (error){
                      console.log(error);
                  });

          },
      })
  </script>


